<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <#include "../decorator/head.html"/>
    <title>MEE-字典管理</title>
</head>
<body data-catalog="service">
<#include "../decorator/banner.html"/>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2 sidebar">
            <#include "../decorator/sys_menu.html"/>
        </div>
        <div class="col-sm-offset-2 col-sm-10">
            <div class="main">
                <!-- 业务内容 -->
                <form method="post" id="search-form" class="form-inline form-search">
                    <label class="form-label">用户代码</label>&nbsp;&nbsp;
                    <input type="text" name="userid" >&nbsp;&nbsp;
                    <label class="form-label">用户名称</label>&nbsp;&nbsp;
                    <input type="text" name="username" >&nbsp;&nbsp;
                    <button name="query" type="submit" class="btn btn-sm btn-primary">查询</button>
                    <span class="seprator"></span>
                    <button name="mod" class="btn btn-sm btn-info">编辑</button>
                    <span class="seprator"></span>
                    <button name="new" class="btn btn-sm btn-success">增加</button>
                    <span class="seprator"></span>
                    <button name="del" class="btn btn-sm btn-danger">删除</button>
                </form>
                <div id="data-list">
                </div>

                <script type="text/cc-template" id="template-data-list">
                    <table class="table table-striped table-bordered table-hover table-condensed">
                        <thead>
                        <tr>
                            <th width="40px;">选择</th>
                            <th>字典分类</th>
                            <th>分类名称</th>
                            <th>KEY</th>
                            <th>VALUE</th>
                            <th>描述</th>
                            <th>创建时间</th>
                            <th>创建人</th>
                        </tr>
                        </thead>
                        <tbody>
                        {{#each data}}
                        <tr>
                            <th><input type="checkbox" name="sel" value="{{@index}}"></th>
                            <td>{{series}}</td>
                            <td>{{series_desc}}</td>
                            <td>{{key}}</td>
                            <td>{{value}}</td>
                            <td>{{desc}}</td>
                            <td>{{create_date}}</td>
                            <td>{{create_by}}</td>
                        </tr>
                        {{/each}}
                        </tbody>
                    </table>
                    <form class="form-paging">
                        <label>当前第 {{idx}} 页 / 总 {{pageCount}} 页, 每页
                            &nbsp;<select class="input-sm" name="pageSize" pageSize="{{size}}"></select>&nbsp;条</label>
                        <span class="seprator"></span>
                        <button name="firstpage" class="btn btn-sm">首页</button>
                        <button name="prevpage" class="btn btn-sm">上一页</button>
                        <button name="nextpage" class="btn btn-sm">下一页</button>
                        <button name="lastpage" class="btn btn-sm">末页</button>
                        <span class="seprator"></span>
                        <label>第<input type="text" name="pageIdx" class="page" value="{{index}}" size="3"></input>页</label>
                        <button name="gopage" class="btn btn-sm">GO</button>
                    </form>
                </script>

            </div>
        </div>
    </div>
</div>
</body>
<!-- 底部静态 -->
<#include "../decorator/foot.html"/>
<script type="text/javascript">
    $(function(){
        seajs.use("sys/dict", function(dict){
            dict.init();
        });
    });
</script>
</html>
